<?php

namespace App\Repositories;

use App\Models\Menu;
use App\Exceptions\InvalidException;
use DB;
use App\Models\Third;
class ThirdRepo
{
	public function create($data)
	{
		return Third::create($data);
	}
	public function getOneById($id) 
	{
		return Third::where('id',$id)->first();
	}
	public function getOneByOpenId($openid) 
	{
		return Third::where('openid',$openid)->first();
	}
}